/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.live.entity;

import org.hibernate.validator.constraints.Length;

import com.cnjson.db.persistence.DataEntity;
import com.hongsuan.pplive.modules.sys.entity.User;

/**
 * 单表生成Entity
 * @author cgli
 * @version 2016-04-18
 */
public class LiveConcernFans extends DataEntity<LiveConcernFans> {

	private static final long serialVersionUID = 1L;
	private User user;		// 被关注者ID(我的粉丝用户id)
	private String concernUserId;		// 关注者ID(我的关注人id)

	public LiveConcernFans() {
		super();
	}

	public LiveConcernFans(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Length(min=0, max=32, message="关注者ID(我的关注人id)长度必须介于 0 和 32 之间")
	public String getConcernUserId() {
		return concernUserId;
	}

	public void setConcernUserId(String concernUserId) {
		this.concernUserId = concernUserId;
	}

}